<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">
    <div class="row">
        <div style="background: #ffffff;">
            <form class="form-horizontal" name="setMHSCForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>设置微课</strong></h3>
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>请按照提示设置课程相关微课的信息。</p>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">微课编码</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="code" ng-model="setMicroH5StudyClass.code" required/>
                                </div>
                                <span class="help-block" ng-show="(setMHSCForm.code.$untouched && !setMHSCForm.$submitted) || setMHSCForm.code.$valid">请输入微课的编码</span>
                                <div ng-show="(setMHSCForm.code.$touched || setMHSCForm.$submitted ) && setMHSCForm.code.$invalid">
                                    <span class="error-block" ng-show="setMHSCForm.code.$error.required">必须要输入微课的编码</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">最低停留时长（秒）</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="mustTime" ng-model="setMicroH5StudyClass.mustTime" ng-pattern="/^[1-9]\d*$/"/>
                                </div>
                                <span class="help-block" ng-show="(setMHSCForm.mustTime.$untouched && !setMHSCForm.$submitted) || setMHSCForm.mustTime.$valid">请输入微课的最低停留时长</span>
                                <div ng-show="(setMHSCForm.mustTime.$touched || setMHSCForm.$submitted ) && setMHSCForm.mustTime.$invalid">
                                    <span class="error-block" ng-show="setHSCForm.mustTime.$error.pattern">必须是大于零的整数</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>取消</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>确定</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- END PAGE CONTENT WRAPPER -->